﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}formui.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}admin-all.css" />
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}base.css"/>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-1.7.2.js"></script>
    <script type="text/javascript" src="{$Think.const.HOME_JS_URL}jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="{$Think.const.HOME_CSS_URL}ui-lightness/jquery-ui-1.8.22.custom.css" />
    
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>角色管理<b class="tip"></b>角色列表</div>
<!-- 搜索 -->
<div class="alert alert-info">
    <form method="GET" name="search_form">
		<p>
			角色名称：
	   		<input type="text" name="role_name" size="30" value="{$Think.get.role_name}" />
		<input type="submit" value=" 搜索 " class="btn" id="Button3" /></p>
    </form>
    
    &nbsp;<a class="btn" id="Button3" href="{:U('add',array('p'=>$p))}">添加新角色</a>
</div>
    <table class="tb" id="top">
        <thead>
            <tr >
                <th >角色名称</th>
                <th >权限名称</th>
                <th width="60">操作</th>
            </tr>
        </thead>
        <tbody>

           <volist name="data" id="v">           
			<tr class="tron">
				<td>{$v['role_name']}</td>
				<td>{$v['pri_name']}</td>
		        <td align="center">
		        	<a class='btn' href="{:U('edit',array('id'=>$v['id'],'p'=>$p))}" title="编辑">编辑</a> 
	                <a class='btn' href="{:U('delete',array('id'=>$v['id'],'p'=>$p))}" onclick="return confirm('确定要删除吗？');" title="移除">移除</a> 
		        </td>
	        </tr>
       </volist>
		<if condition="preg_match('/\d/', $page)">  
        <tr><td align="right" nowrap="true" colspan="99" height="30">{$page}</td></tr> 
                </if>

        </tbody>

    </table>
</body>
</html>
